package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "st_ticket_transaction_record")
public class StTicketTransactionRecord implements Serializable {
    @Id
    private Integer id;

    /**
     * 用户门票id
     */
    @Column(name = "ticket_id")
    private Integer ticketId;

    /**
     * 市场门票id
     */
    @Column(name = "market_ticket_id")
    private Integer marketTicketId;

    /**
     * 出售用户ID
     */
    @Column(name = "seller_id")
    private Long sellerId;

    /**
     * 购买用户ID
     */
    @Column(name = "buyer_id")
    private Long buyerId;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public StTicketTransactionRecord(Integer id, Integer ticketId, Integer marketTicketId, Long sellerId, Long buyerId, Date createTime) {
        this.id = id;
        this.ticketId = ticketId;
        this.marketTicketId = marketTicketId;
        this.sellerId = sellerId;
        this.buyerId = buyerId;
        this.createTime = createTime;
    }

    public StTicketTransactionRecord() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取用户门票id
     *
     * @return ticket_id - 用户门票id
     */
    public Integer getTicketId() {
        return ticketId;
    }

    /**
     * 设置用户门票id
     *
     * @param ticketId 用户门票id
     */
    public void setTicketId(Integer ticketId) {
        this.ticketId = ticketId;
    }

    /**
     * 获取市场门票id
     *
     * @return market_ticket_id - 市场门票id
     */
    public Integer getMarketTicketId() {
        return marketTicketId;
    }

    /**
     * 设置市场门票id
     *
     * @param marketTicketId 市场门票id
     */
    public void setMarketTicketId(Integer marketTicketId) {
        this.marketTicketId = marketTicketId;
    }

    /**
     * 获取出售用户ID
     *
     * @return seller_id - 出售用户ID
     */
    public Long getSellerId() {
        return sellerId;
    }

    /**
     * 设置出售用户ID
     *
     * @param sellerId 出售用户ID
     */
    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    /**
     * 获取购买用户ID
     *
     * @return buyer_id - 购买用户ID
     */
    public Long getBuyerId() {
        return buyerId;
    }

    /**
     * 设置购买用户ID
     *
     * @param buyerId 购买用户ID
     */
    public void setBuyerId(Long buyerId) {
        this.buyerId = buyerId;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}